﻿using System;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase.JsonConverter;

namespace ZilLion.Service.WeChatMall.Domain.Requests.CrmProxy
{
    public class CrmCashPayRequest
    {
        public Ywcore YwCore { get; set; }
        public Ywinfo YwInfo { get; set; }
    }

    public class Ywcore
    {
        public string Oprcardno { get; set; } = string.Empty;
        public int Oprctype { get; set; }

        [JsonConverter(typeof(ChinaDateTimeConverter))]
        public DateTime Oprtime { get; set; } = DateTime.Now;

        public int Oprbrid { get; set; }
        public string Oprbrname { get; set; } = string.Empty;
        public decimal Oprxfje { get; set; }
        public string Oprsno { get; set; } = string.Empty;
    }

    public class Ywinfo
    {
        public string Oprywsno { get; set; } = string.Empty;
        public int Oprppid { get; set; }
        public string Oprppname { get; set; } = string.Empty;
        public int Oprid { get; set; }
        public string Oprname { get; set; } = string.Empty;

        [JsonConverter(typeof(ChinaDateTimeConverter))]
        public DateTime Oprywdate { get; set; } = DateTime.Now;

        public int Oprskbrid { get; set; }
        public string Oprskbrname { get; set; } = string.Empty;
        public int Oprskppid { get; set; }
        public string Oprskppname { get; set; } = string.Empty;
        public string Oprywwindow { get; set; } = string.Empty;
        public string Oprywbno { get; set; } = string.Empty;
        public string Oprsummary { get; set; } = string.Empty;
    }
}